# # 练习题2
# # 非常简单


# # 打印练习
# # 1

# # ****
# # ****
# # ****



# i=0
# while i<3:
#     print("*"*4)
#     i+=1


# # 2

# # *
# # **
# # ***
# # ****
# # *****



# i=1
# while i<6:
#     print("*"*i)
#     i+=1



# # 3

# # *****
# # ****
# # ***
# # **
# # *



# i=1
# while i<6:
#     print("*"*(6-i))
#     i+=1



# # 4

# #     *
# #    ***
# #   *****
# #  *******
# # *********



# i=1
# while i<6:
#     print(' '*(5-i),end='')
#     print("*"*(2*i-1))
#     i+=1



# # 5

# # 请输入菱形的行数:7
# #     *
# #    ***
# #   *****
# #  *******
# #   *****
# #    ***
# #     *



# i=1
# hang=eval(input('请输入菱形的行数:'))
# while i<(hang+3)/2:
#     print(' '*(hang//2+1-i),end='')
#     print("*"*(2*i-1))
#     i+=1
# i-=2
# while i>0:
#     print(' '*(hang//2+1-i),end='')
#     print("*"*(2*i-1))
#     i-=1



# # 6

# # 请输入菱形的行数:5
# #   *
# #  * *
# # *   *
# #  * *
# #   *

# i=1
# hang=eval(input('请输入菱形的行数:'))
# while i<(hang+3)/2:
#     print(' '*(hang//2+1-i),end='')
#     if i==1:
#         print("*")
#     else:
#         print("*",end='')
#         print(" "*((i-1)*2-1),end='')
#         print("*")
#     i+=1
# i-=2
# while i>0:
#     print(' '*(hang//2+1-i),end='')
#     if i==1:
#         print("*")
#     else:
#         print("*",end='')
#         print(" "*((i-1)*2-1),end='')
#         print("*")
#     i-=1


# # 7
# # 打印沙漏


# hang=eval(input('请输入沙漏的行数:'))
# i=(hang+1)/2
# i=int (i)
# while i>0:
#     print(' '*(hang//2+1-i),end='')
#     print("*"*(2*i-1))
#     i-=1
# i+=2
# while i<(hang+3)/2:
#     print(' '*(hang//2+1-i),end='')
#     print("*"*(2*i-1))
#     i+=1

